package com.huaxia.day7a;

public class Test {
    public static void main(String[] args) {
        A obj = new A(10, 20);
    }


    static class B {
        int b;

        B(){

        }

        B(int x) {
            b = x;
            System.out.println("b=" + b);
        }
    }

    static class A extends B {
        int a;

        A(int x, int y) {
            super(x);
            a = y;
            System.out.println("b=" + b + "，a=" + a);
        }
    }

}
